import fetch from '@/utils/fetch'

export function getCellList(areaIds, params) {
	return fetch({
	    url: '/uc/v1/mgt/cell',
	    method: 'get',
		headers: {'x-area-id': areaIds},
	    params
  	})
}

export function getCellDetail(id) {
	return fetch({
	    url: `/uc/v1/mgt/cell/${id}`,
	    method: 'get'
  	})
}

export function createCell(data) {
	return fetch({
		url: '/uc/v1/mgt/cell',
		method: 'post',
		data
	})
}

export function modifyCell(id, data) {
	return fetch({
	    url: `/uc/v1/mgt/cell/${id}`,
	    method: 'patch',
	    data
	})
}